package com.yyx.lgb.manager.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: SysRoleUserMapper
 * Package: com.yyx.lgb.manager.mapper
 * Description:
 *
 * @Author: yyx
 * @Create: 2025/8/4 - 16:02
 */
@Mapper
public interface SysRoleUserMapper {

     void doAssign(@Param("userId") Long userId,
                                  @Param("roleId") Long roleId);		// 添加关联关系
    void deleteByUserId(Long userId);				// 根据用户的id删除数据

    List<Long> findSysUserRoleById(Long userId);
}
